using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CodeStory.News.ObjectEntity;
using Activa.CoolStorage;
using CodeStory.Core.UI;

namespace CodeStory.WebApplication.Modules.News.Admin
{
	public partial class CategoryManager : Portlet
	{
		protected override void OnInit(EventArgs e) {
			Load += new EventHandler(CategoryManager_Load);
			base.OnInit(e);
		}

		void CategoryManager_Load(object sender, EventArgs e) {
			//throw new Exception("The method or operation is not implemented.");
			if (!IsPostBack) {
				BindCategory();
			}
		}

		private void BindCategory() {
			//throw new Exception("The method or operation is not implemented.");
			CSList<NewsCategoryObject> list = NewsCategoryObject.List();
			gvCategory.DataSource = list;
			gvCategory.DataBind();
		}
	}
}